package com.eet.consumer.consumers;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 消费者1
 *
 * @author zheng.zhang
 */
@Component
@RabbitListener(queues = "test4.queue")
public class Consumer1 {

    @RabbitHandler
    public void showMsg(String message) {
        System.out.println("Consumer1收到的消息: " + message);
    }
}
